package com.ziyun.erp.modules.productBaseInfo.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.goods.dto.OptionDto;
import com.ziyun.erp.modules.productBaseInfo.entity.ProductBaseInfoEntity;
import com.ziyun.erp.modules.quoteAttribute.entity.QuoteAttributeOptionEntity;
import io.renren.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 产品基础信息关系表
 *
 * @author jl
 * @email 
 * @date 2018-09-14 09:46:47
 */
public interface ProductBaseInfoService extends IService<ProductBaseInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<OptionDto> selectEditSelectOptionIds(Long goodsId, Integer integer, Integer partId);

    List<OptionDto> selectEditSelectOptionIdsTwo(Long goodsId, Integer integer);

    List<Map<String,Object>> selectEditHasPriceMaterialOption(Long goodsId, Integer integer, int i, String optionKey);

    List<Map<String,Object>> selectEditHasPriceMaterialOptionTwo(Long goodsId, int i, String optionKey);

    void delFlagQuoteProductByGoodsId(Long goodsId);

    Integer getEditSelectDefaultOptionId(Long goodsId, Integer integer, Integer partId);

    Integer getEditSelectDefaultOptionIdTwo(Long goodsId, Integer integer);

    ProductBaseInfoEntity getEditSelectDefaultMaterialOption(Long goodsId);

    ProductBaseInfoEntity getEditSelectDefaultMaterialOptionTwo(Long goodsId, Integer integer);

    void deleteProductBaseInfoByGoodsId(Long goodsId);

    void solveEditCraft(Long goodsId,String craftOptionIds);

    List<Integer> selectTwbOptionIds(Long goodsId);
}

